</head>
<body>
<div class="f-sep10"></div>
<div class="f-sep10"></div>
<div class="m-hd m-tabs">
<h2 class="u-tt">管理员管理</h2>
	<div class="more"><a href="javascript:;" onClick="window.location.reload();"><span class="icon">&#xf021;</span> 刷新</a></div>
    <ul>
        <li><a class="z-crt" href="javascript:;"><span class="icon">&#xf101;</span> 管理员列表</a></li>
		<li><a class="opentab" href="javascript:vouid(0);"  title="添加管理员" url="<?php echo url('user_list/add') ?>" ><span class="icon">&#xf067;</span> 添加管理员</a></li>
    </ul>
</div>
<div class="m-list-table">
<table class="m-table m-table-row tablesorter" uid="table">
    <thead>
      <tr>
        <th class="cola">ID</th>
        <th>帐号</th>
        <th>昵称</th>
        <th>管理组</th>
        <th>状态</th>
        <th class="cola">栏目操作</th>
      </tr>
      
    </thead>
    <tbody>
    	<!--foreach:{$list $vo}-->
        <tr>
        <td>{$vo.uid}</td>
        <td >{$vo.username} </td>
        <td >{$vo.nicename} </td>
        <td >{$vo.gname} </td>
        <td>
        <!--if:{$vo['status']==1}-->
        启用
        <!--{else}-->
        禁用
        <!--{/if}-->
        </td>
        <td>
        <a class="opentab operating" href="javascript:vouid(0);"  title="编辑管理员" url="<?php echo url('user_list/edit',array('uid' => $vo['uid'])) ?>" ><span class="icon">&#xf040;</span> 修改</a>
        <a class="operating" href="javascript:vouid(0);" onClick="del('<?php echo url('user_list/del') ?>','{$vo.uid}',this)"><span class="icon">&#xf014;</span> 删除</a>
        
         </td>
      </tr>
        <!--{/foreach}-->
    </tbody>
</table>
</div>
</body>
<script>
var del = new function(){}; 
Do.ready('base','dialog', function() {
	window.del = function del(url,uid,obj) {
		ajaxpost({
		name:'删除此管理员会删除管理员关联!',
		url:url,
		data:{uid:uid},
		tip:true,
		success:function(){
			$(obj).parent().parent().remove();
			}
		});
	}
});
</script>